import React from 'react'

export default function Goods(props) {
    let {goods,changeN}=props
    return (
        <div>
            <button onClick={()=>changeN(0)}>本周热卖</button>
            <button onClick={()=>changeN(1)}>本周新品</button>
            <button onClick={()=>changeN(2)}>打折</button>
            {
                goods.map(item=>{
                    return <div key={item.id}>{item.goodsname}</div>
                })
            }
           
        </div>
    )
}
